package com.gsc.demo.service;

import com.gsc.demo.dao.UserRedisImp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * file description
 * Created by 72038967 on 2019/8/14.
 */
@Service
public class UserRedisService implements IRedisService {
    @Autowired
    private UserRedisImp mUserRedisImp;

    public boolean saveObjcetByKey(String key, String value) {
        return mUserRedisImp.saveObjcetByKey(key, value);
    }

    public String getValueByKey(String key) {
        return mUserRedisImp.getValueByKey(key);
    }

    public boolean saveList(String key, List list) {
        return mUserRedisImp.saveList(key, list);
    }

    public List getBykey(String key) {
        return mUserRedisImp.getBykey(key);
    }
}
